<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{titleName.firstName}}</el-breadcrumb-item>
      <el-breadcrumb-item>{{titleName.firstName}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {

  props: {
   titleName: {
       firstName:String,
       scendName:String
    },
  },
  data() {
    return {
      // name : this.myName    // 把传过来的值赋值给新的变量
    }
  },
  created() {
    // console.log(this.name);
    console.log(this.myName)
  },
}
</script>

<style>
</style>